package org.jeecg.modules.system.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 存放创建人、创建时间等通用字段
 */
@Data
public class BaseUserEntity extends BaseEntity {

    /**创建者*/
    @Excel(name = "创建者", width = 15)
    @ApiModelProperty(value = "创建者")
    private String createBy;
    /**创建日期*/
    @Excel(name = "创建日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新者*/
    @Excel(name = "更新者", width = 15)
    @ApiModelProperty(value = "更新者")
    private String updateBy;
    /**更新日期*/
    @Excel(name = "更新日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**删除标记（0：正常；1：删除；2：审核）*/
    @Excel(name = "删除标记（0：正常；1：删除；2：审核）", width = 15)
    @ApiModelProperty(value = "删除标记（0：正常；1：删除；2：审核）")
    private String delFlag;

}
